package com.yuoj.yuojbackendjudgeservice.strategy;

import com.yuoj.backendcommon.entity.QuestionSubmit;
import org.springframework.stereotype.Service;

/**
 * @author 刘渠好
 * @since 2025-04-05 14:40
 */
@Service
public class JudgeManager {

    public JudgeStrategy getStrategy(QuestionSubmit questionSubmit) {
        String language = questionSubmit.getLanguage ();
        switch (language){
            case "java":
                return new JavaStrategy();
            default:
                return new DefaultStrategy ();
        }
    }
}
